package com.hiflying.smartlink.v7;

import android.content.pm.ApplicationInfo;

import com.hiflying.smartlink.AbstractSmartLinkerFragment;
import com.hiflying.smartlink.ISmartLinker;

public class MulticastSmartLinkerFragment extends AbstractSmartLinkerFragment {
    @Override // com.hiflying.smartlink.AbstractSmartLinkerFragment
    public ISmartLinker setupSmartLinker() {
        MulticastSmartLinker multicastSmartLinker = MulticastSmartLinker.getInstance();
        try {
            ApplicationInfo applicationInfo = this.mAppContext.getPackageManager().getApplicationInfo(this.mAppContext.getPackageName(), 128);
            if (applicationInfo.metaData.containsKey(MulticastSmartLinker.META_DATA_MIX_TYPE)) {
                multicastSmartLinker.setMixType(applicationInfo.metaData.getInt(MulticastSmartLinker.META_DATA_MIX_TYPE));
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return multicastSmartLinker;
    }
}
